package com.love.marriage.userSettingsInfo.mapper;

import com.love.marriage.userSettingsInfo.entity.UserSettingsInfo;
import com.love.marriage.userSettingsInfo.vo.UserSettingsInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:   mapper
 * author:       mybatisPlus
 * createDate:   2024-10-12 22:22:35
 * version:      1.0.0
 */
@Mapper
public interface UserSettingsInfoMapper extends BaseMapper<UserSettingsInfo> {

    @DataPermission(table = "user_settings_info_t")
    Page<UserSettingsInfoVo> getPage(Page<UserSettingsInfoVo> page, @Param("userSettingsInfoVo") UserSettingsInfoVo userSettingsInfoVo);

    UserSettingsInfoVo queryUserSettingsInfo(@Param("id") Long id);

    UserSettingsInfoVo queryUserSettingsInfoByUserId(@Param("userId") Long userId);
}
